﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Extjs_ReGSharpTest.Stubs;
using Extjs_ReGSharp.Sorting;

namespace Extjs_ReGSharpTest.SortingBehaviour
{
	internal class OppositeOrderSortingBehaviour : ISortingBehaviour<DataObjectStub>
	{
		#region ISortingBehaviour<DataObjectStub> Members

		public int Compare(DataObjectStub firstInstance, DataObjectStub secondInstance)
		{
			return (-1) * (firstInstance.IntField - secondInstance.IntField);
		}

		#endregion
	}
}
